package cn.koala.key.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;

/**
 * 报废单明细VO
 * @description
 * @author shuai.xu
 * @time 2019/5/30 14:39
*/
@ApiModel(value="报废单明细")
public class ScrapedOrderDetail {
    /**
     * 主键ID
     */
    @ApiModelProperty("主键ID")
    private Long id;

    /**
     * 报废单号
     */
    @ApiModelProperty("报废单号")
    private String orderNo;

    /**
     * 钥匙条形码
     */
    @ApiModelProperty("钥匙条形码")
    @NotNull(message="key_bar_code参数不能为空")
    private String keyBarCode;

    /**
     * 仓库位置A-1-1-1A排1列1行抽屉的第1个排
     */
    @ApiModelProperty("仓库位置A-1-1-1A排1列1行抽屉的第1个排")
    private String warehouseLocation;

    /**
     * 车牌号
     */
    @ApiModelProperty("车牌号")
    @NotNull(message="car_no参数不能为空")
    @Size(max=10,min=0,message="car_no长度超过")
    private String carNo;

    /**
     * 车架号
     */
    @ApiModelProperty("车架号")
    @NotNull(message="car_vin参数不能为空")
    @Size(max=32,min=0,message="car_vin长度超过")
    private String carVin;

    /**
     * 是否删除
     */
    @ApiModelProperty("是否删除")
    private Byte isDeleted;

    /**
     * 操作人工号
     */
    @ApiModelProperty("操作人工号")
    @NotNull(message="operator参数不能为空")
    @Size(max=10,min=0,message="operator长度超过")
    private String operator;

    /**
     * 是否扫码
     */
    @ApiModelProperty("是否扫码")
    @NotNull(message="is_scanned参数不能为空")
    private Byte isScanned;

    /**
     * 主动创建时间
     */
    @ApiModelProperty("主动创建时间")
    private Date gmtCreate;

    /**
     * 被动更新时间
     */
    @ApiModelProperty("被动更新时间")
    private Date gmtModified;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getKeyBarCode() {
        return keyBarCode;
    }

    public void setKeyBarCode(String keyBarCode) {
        this.keyBarCode = keyBarCode;
    }

    public String getWarehouseLocation() {
        return warehouseLocation;
    }

    public void setWarehouseLocation(String warehouseLocation) {
        this.warehouseLocation = warehouseLocation;
    }

    public String getCarNo() {
        return carNo;
    }

    public void setCarNo(String carNo) {
        this.carNo = carNo;
    }

    public String getCarVin() {
        return carVin;
    }

    public void setCarVin(String carVin) {
        this.carVin = carVin;
    }

    public Byte getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Byte isDeleted) {
        this.isDeleted = isDeleted;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public Byte getIsScanned() {
        return isScanned;
    }

    public void setIsScanned(Byte isScanned) {
        this.isScanned = isScanned;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }
}